package com.hundun.hddeal.dao;

import com.hundun.hddeal.entity.Pay;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import javax.xml.crypto.Data;
import java.util.Date;
import java.util.List;
/**
 * 支付||提现接口
 * @author 谢
 */
@Component
public interface PayMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Pay record);

    int insertSelective(Pay record);

    Pay selectByPrimaryKey(String payNum);

    int updateByPrimaryKeySelective(Pay record);

    int updateByPrimaryKey(Pay record);

    Pay selectByUserId(String userId);

    List<Pay> selectByName(@Param("userNames") String userNames, @Param("startTime")Date startTime,
                           @Param("endTime")Date endTime,@Param("orderType") Byte orderType);



    List<Pay> selectByStatus(@Param("userNames") String mtId,@Param("orderType") Byte orderType);



}